package com.ruoyi.project.abucoder.prize.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 奖品明细对象 prize
 * 
 * @author wuyy
 * @date 2024-04-28
 */
public class Prize extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 奖品名称 */
    @Excel(name = "奖品名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 分数 */
    @Excel(name = "分数")
    private String score;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 概率 */
    @Excel(name = "概率")
    private Double percentage;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setScore(String score)
    {
        this.score = score;
    }

    public String getScore()
    {
        return score;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setPercentage(Double percentage)
    {
        this.percentage = percentage;
    }

    public Double getPercentage()
    {
        return percentage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("score", getScore())
            .append("img", getImg())
            .append("percentage", getPercentage())
            .toString();
    }
}
